package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.TempRoughStoneOrder;
import com.sc.nft.mapper.TempRoughStoneOrderMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 朱梦晨
 * @Description: 原石订单导出表(sc_temp_order_detail)数据DAO
 * @date 2024-08-02
 */
@Slf4j
@Repository
public class TempRoughStoneOrderDao extends ServiceImpl<TempRoughStoneOrderMapper, TempRoughStoneOrder> {

    public List<TempRoughStoneOrder> getTempOrderDetailList(Long exportRecordsId){
        LambdaQueryWrapper<TempRoughStoneOrder> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TempRoughStoneOrder::getExportRecordsId,exportRecordsId);
        wrapper.eq(TempRoughStoneOrder::getIsDelete, Boolean.FALSE);
        return list(wrapper);
    }
}
